import { MEETING_JUMP_URL } from './constant'
export default function jumpPage(page: string, meeting_id?: string, query_string?: string) {
	switch (page) {
		case 'login':
			window.location.href = '/portal/login'
			break
		case 'portal':
			window.location.href = '/portal'
			break
		case 'create':
			if (meeting_id) {
				window.location.href = './create.html?meetingMoid=' + meeting_id
			} else {
				window.location.href = './create.html'
			}
			break
		case 'edit':
			window.location.href = './edit.html'
			break
		case 'meetingList':
			window.location.href = './meetingList.html'
			break
		case 'no_permission':
			window.location.href = './no_permission.html'
			break
		case 'index':
			window.location.href = './index.html'
			break
		case 'findVirtualRoom':
			window.location.href = './findVirtualRoom.html'
			break
		case 'template':
			window.location.href = './template.html'
			break
		case 'personalConfig':
			window.location.href = './personalConfig.html'
			break
		case 'auditManage':
			window.location.href = './auditManage.html'
			break
		case 'sysLog':
			window.location.href = './sysLog.html'
			break
		case 'sysConfig':
			window.location.href = './sysConfig.html'
			break
		case 'myMeeting':
			if (query_string) {
				window.location.href = './myMeeting.html' + query_string
			} else {
				window.location.href = './myMeeting.html'
			}
			break
		case 'historyMeeting':
			window.location.href = './historyMeeting.html'
			break
		case 'detail':
			window.location.href = './detail.html?meetingMoid=' + meeting_id
	}
}
